package com.shanzmoo.job.task;

import com.shanzmoo.job.base.BaseTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 定时任务测试
 * @author: Gzhao 2020/12/24
 */
@Slf4j
@Component(value = "testTask")
public class TestTask implements BaseTask {

    @Override
    public String doJob(){
        //再这个方法中执行task业务逻辑
        log.info("定时任务测试......");
        return "success";
    }
}
